{% extends '__base.tpl' %}

{% block head %}
{{super()}}
<!-- build:css -->
    <link rel="stylesheet" type="text/css" href="../../../public/css/page/popup.css" />
    <link rel="stylesheet" type="text/css" href="../../../public/css/page/user.css" />
<!-- endbuild -->
{% endblock %}

{% block body %}
<div class="user-bg">
    <div id="box" class="user-info">
        <div id="userData"></div>
        <script id="userData_tpl" type="text/html">
            <!--用户头部简介start-->
            <div class="user-top-box clearfix">
                <div class="user-head-box">
                    <img width="100%" src=" <%=imgPath(header)%>" alt="head" >
                </div>
                <div class="fleft user-top-right">
                    <div class="clearfix mb20">
                        <div class="fleft clo6">
                            <b class="user-name"><%nickName%></b>
                            <% if memberType==='V' %>
                            <img src="../../public/images/daren1.jpg" class="iconLV1" />
                            <% else if memberType==='D' %>
                            <img src="../../public/images/daren2.jpg" class="iconLV" />
                            <%/if%>
                            <span class="ml20 clo9">
                                等级: <em> <%memberType%><%=toFloat( gradeValue/100 , 0)%> </em>
                            </span>
                            <span class="ml20 clo9">
                                <% if score%>
                                好评率: <em class="blue"> <%score%>% </em>
                                <%else%>
                                 评价: <em class="blue"> 暂无</em>
                                <%/if%>
                            </span>
                        </div>
                        <div class="fright">
                            <button class="btn orange-btn" <%if isFollow&&isFollow!=undefined%>  style="display:none;" <%/if%>
                            data-memberid="<%id%>" onclick="BASE.COMMON.noticeToMember(this)">+关注</button>
                            <button class="btn ccc-btn"  <%if !isFollow||isFollow==undefined%> style="display:none;" <%/if%>
                                    data-memberid="<%id%>"onclick="BASE.COMMON.cancelNotice(this)" style="background-color: #ccc">已关注</button>
                            <a  href="/sendGift.html?id=<%id%>" class="btn red-border-btn">送心意</a>
                        </div>
                    </div>
                    <p class="mb10">
                        <% if sign %>
                        <% sign %>
                        <%else%>
                        暂无签名
                        <%/if%>
                    </p>
                    <div>
                         <span>
                            兴趣方向：
                            <em class="clo9">
                            <%if learnTypeNames%>
                                <%learnTypeNames%>
                            <%else%>
                                暂无
                            <%/if%>
                             </em>
                        </span>
                        <!--年龄：<span class="clo9">
                        <% if age %>
                            <% age %>
                        <%else %>
                            暂未填写
                        <%/if %>
                        </span>-->
                        <% if areaName %>
                        <span class="ml30">
                            来自：<em class="clo9"><% areaName %></em>
                        </span>
                        <%/if%>
                        <%if freeTimeBegin%>
                        <span class="ml30">
                            接单时间：<em class="clo9"><%=totime(freeTimeBegin)%>-<%=totime(freeTimeEnd)%></em>
                        </span>
                        <%/if%>
                        <%if company%>
                        <span class="ml30">
                            工作单位：<em class="clo9"><%company%></em>
                        </span>
                        <%/if%>
                        <%if schoolName%>
                        <span class="ml30">
                            学校：<em class="clo9"><%schoolName%></em>
                        </span>
                        <%/if%>
                    </div>
                </div>
            </div>
            <!--用户头部简介end-->
            <div class="user-nav-box">
                <!--用户栏目导航start-->
                <div class="user-nav">
                    <span>
                        关注 <em class="red"><%followCount%></em>
                    </span>
                    <span class="ml30">
                        粉丝 <em class="red"><%fansCount%></em>
                    </span>
                   <!-- <span class="ml30">
                        咨询人数 <em class="red"><%askCount%></em>
                    </span>-->
                    <span class="ml30">
                        获赞数 <em class="red"><%likeCount%></em>
                    </span>
                    <span class="ml30">
                        提问数 <em class="red"><%sendQuestionCount%></em>
                    </span>
                    <span class="ml30">
                        回答数 <em class="red"><%replyQuestionCount%></em>
                    </span>
                   <!-- <button class="fright btn blue-btn">私聊</button>-->
                </div>
                <!--达人咨询方式价格start-->
                <%if products%>
                <ul class="counsel-box">
                    <li class="counsel-item">
                        <div>
                            <img class="counsel-img" src="../../../public/images/question1.png" alt="counsel">
                            <p class="counsel-title">图文咨询</p>
                            <p class="orange"><%products.imgList[0].price%><%products.imgList[0].descript%></p>
                        </div>
                    </li>
                    <li class="counsel-item">
                        <div>
                            <img class="counsel-img" src="../../../public/images/question2.png" alt="counsel">
                            <p class="counsel-title">电话咨询</p>
                            <p class="orange"><%products.telList[0].price%><%products.telList[0].descript%></p>
                        </div>
                    </li>
                    <li class="counsel-item">
                        <div>
                            <img class="counsel-img" src="../../../public/images/question3.png" alt="counsel">
                            <p class="counsel-title">远程咨询</p>
                            <p class="orange"><%products.remoteList[0].price%><%products.remoteList[0].descript%></p>
                        </div>
                    </li>
                    <li class="counsel-item">
                        <div>
                            <img class="counsel-img" src="../../../public/images/question4.png" alt="counsel">
                            <p class="counsel-title">收徒</p>
                            <p class="orange"><%products.apprenticeList[0].price%><%products.apprenticeList[0].descript%></p>
                        </div>
                    </li>
                </ul>
                <%/if%>
                <!--达人咨询方式价格end-->
            </div>
        </script>
       <div class="user-content-box">
           <div class="user-content-nav-box"  id="userContentNav">
               <a href="javascript:;" data-id="userNotice"
                  onclick="BASE.USER_INFO.getNoticeList.call(this,1)" class="user-content-nav checked">关注</a>
              <!-- <a href="javascript:;" data-id="userFans"
                  onclick="BASE.USER_INFO.getFans.call(this,1)" class="user-content-nav">粉丝</a>-->
               <!--<a href="javascript:;" data-id="userQuestion" class="user-content-nav" data-type="true"
                  onclick="BASE.USER_INFO.getMyQuestion.call(this,1)">提问</a>-->
               <a href="javascript:;" data-id="userAnswer" class="user-content-nav"
                  onclick="BASE.USER_INFO.getMyAnswer.call(this,1)">回答</a>
               <a href="javascript:;" data-id="userProject" class="user-content-nav"
                  onclick="BASE.USER_INFO.getMyProject.call(this,1)">项目</a>
               <a href="javascript:;" data-id="userSource" class="user-content-nav"
                  onclick="BASE.USER_INFO.getMySource.call(this,1)">源码</a>
               <a href="javascript:;" data-id="userBlog" class="user-content-nav"
                  onclick="BASE.USER_INFO.getMyBlog.call(this,1)">博客</a>
           </div>
           <div class="user-content" style="min-height: 300px">
               <!--关注列表start-->
               <section id="userNotice"></section>
               <script id="userNotice_tpl" type="text/html">
                   <ul class="darenList pd15">
                       <% if data.length>0 %>
                       <% each data as arr i %>
                       <li class="darenList-item clearfix">
                           {% include '__toNotice_list_common.html' %}

                           <% if data.userId!=arr.memberId %>
                           <button class="btnStyleS ml20 middle-right"
                           <%if arr.followIs&&arr.followIs!=undefined%> style="display:none;" <%/if%>
                           data-memberid="<%arr.toMemberId%>"
                           onclick="BASE.COMMON.noticeToMember(this)"> + 关注 <%arr.followIs%>  </button>
                           <button class="btnStyleC ml20 middle-right"
                           <%if !arr.followIs||arr.followIs==undefined%> style="display:none;" <%/if%>
                           data-memberid="<%arr.toMemberId%>"
                           onclick="BASE.COMMON.cancelNotice(this)">已关注<%arr.followIs%></button>
                           <%/if%>
                       </li>
                       <%/each%>
                       <%else%>
                       <li>{% include '__no_data.html' %}</li>
                       <%/if%>
                   </ul>
                   {% include '__page.html' %}
               </script>
               <!--关注列表end-->
               <!--粉丝列表start-->
               {%include '__user_fans.html'%}
               <!--粉丝列表end-->
               <!--用户栏目---我的回答start-->
               <section  class="hide" id="userAnswer">
                   <div class="content"></div>
               </section>
               <script id="userAnswer_tpl" type="text/html">
                   <ul class="user-question-list">
                       <% if data.length>0 %>
                       <% each data as item i %>
                       <li class="user-question-item">
                           <div>
                               <a target="_blank" href="/<%item.mutualQuestionId%>/answer_content.html">
                                   <%if item.goodAnswerIs%>
                                   <em class="font16 orange">[最佳回答]</em>
                                   <%/if%>
                                   <h3 class="title"><%item.title%></h3>
                                   <%if item.gainPrice>0%>
                                   <span class="font14 blue">（该回答收入 <em class="red"><%item.gainPrice%>元</em>）</span>
                                   <%/if%>
                               </a>
                           </div>
                           <div class="clo6 font14 mt5">
                               <%=toOveHtml(item.content) %>
                           </div>
                           <div class="font13 clo9 mt10">
                               <%=toTimeStr(item.createDateTime)%> <span class="ml20">评论：<%item.commentCount%></span>
                           </div>
                       </li>
                       <%/each %>
                       <%else%>
                       <li class="no-data" style="width: 100%">
                           {% include '__no_data.html' %}
                       </li>
                       <%/if%>
                   </ul>
                   {% include '__page.html' %}
               </script>
               <!--用户栏目---我的回答end-->
               <!--用户栏目---我的项目start-->
               <section  class="hide" id="userProject">
                   <!-- <div class="user-sub-nav">
                        <a class="user-sub-nav-item checked"  data-type="true"
                           onclick="BASE.USER_CENTER.getMyQuestion.call(this,1)">互助问答</a>
                        <a class="user-sub-nav-item"  data-type="false"
                           onclick="BASE.USER_CENTER.getMyQuestion.call(this,1)">其他</a>
                    </div>-->
                   <div class="content"></div>
               </section>
               <script id="userProject_tpl" type="text/html">
                   <ul class="user-question-list">
                       <% if data.length>0 %>
                       <% each data as item i %>
                       <li class="user-question-item">
                           <div>
                               <a target="_blank" href="/<%item.id%>/project_content_user.html">
                                   <%if item.status==2%>
                                   <em class="font16 orange">[审核成功]</em>
                                   <%else%>
                                   <em class="font16 orange">[<%=projectStatus(item.status)%>]</em>
                                   <%/if%>
                                   <h3 class="title"><%item.title%></h3>
                                   <%if item.price>0%>
                                   <span class="font14 blue">（已支付<%=projectPayType(item.priceType)%><em class="red"><%item.price%>元</em>）</span>
                                   <%/if%>
                               </a>
                           </div>
                           <div class="font13 clo9 mt10">
                               <%=toTimeStr(item.createDateTime)%> <span class="ml20">跟帖：<%item.commentCount%></span>
                               <span class="ml20">浏览：<%item.clickCount%></span>
                               <span class="ml20">分享：<%item.shareCount%></span>
                               <%if item.status==4%>
                                <span class="ml20">
                                    <a target="_blank" href="/<%item.recvMemberId%>/userInfo.html" class="red">
                                        <%item.recvNickName%>
                                    </a>
                                     <%=dateFormat(item.recvDateTime)%>接单
                                </span>
                               <%/if%>
                           </div>
                       </li>
                       <%/each %>
                       <%else%>
                       <li class="no-data" style="width: 100%">
                           {% include '__no_data.html' %}
                       </li>
                       <%/if%>
                   </ul>
                   {% include '__page.html' %}
               </script>
               <!--用户栏目---我的项目end-->
               <!--用户栏目---我的源码start-->
               <section  class="hide listCon" id="userSource">
                   <div class="content"></div>
               </section>
               <script id="userSource_tpl" type="text/html">
                   <ul class="user-question-list pd15">
                       <% if data.length>0 %>
                       <% each data as item i %>
                       <li style="width: inherit" class="relative">
                           {%include '__source_script.html'%}
                       </li>
                       <%/each %>
                       <%else%>
                       <li class="no-data" style="width: 100%">
                           {% include '__no_data.html' %}
                       </li>
                       <%/if%>
                   </ul>
                   {% include '__page.html' %}
               </script>
               <!--用户栏目---我的源码end-->

               <!--用户栏目---我的博客start-->
               <section  class="hide listCon" id="userBlog">
                   <div class="content"></div>
               </section>
               <script id="userBlog_tpl" type="text/html">
                   <ul class="user-question-list pd15">
                       <% if data.length>0 %>
                       <% each data as item i %>
                       <li style="width: inherit" class="relative">
                           {%include '__blog_script.html'%}
                       </li>
                       <%/each %>
                       <%else%>
                       <li class="no-data" style="width: 100%">
                           {% include '__no_data.html' %}
                       </li>
                       <%/if%>
                   </ul>
                   {% include '__page.html' %}
               </script>
               <!--用户栏目---我的博客end-->

           </div>
      </div>



        <!--用户栏目---别人的评价start-->
        <div id="commentList"></div>
        <script id="commentList_tpl" type="text/html">
            <div class="user-content-box">
                <div class="daren-comment-title">用户评价</div>
                <ul class="darenList pd15">
                    <% each data as arr i %>
                        <li class="darenList-item clearfix">
                            <div class="head-img-box">
                                <a target="_blank" href="/<%arr.memberId%>/userInfo.html">
                                    <img class="fleft head-img" src="<%=imgPath(arr.header)%>" />
                                </a>
                            </div>
                            <div class="fleft">
                                <h5 class="font15 clo3">
                                    <a target="_blank" href="/<%arr.memberId%>/userInfo.html">
                                        <% arr.nickName %>
                                        <% if arr.memberType==='V' %>
                                        <img src="../../public/images/daren1.jpg" class="iconLV1" />
                                        <% else if arr.memberType==='D' %>
                                        <img src="../../public/images/daren2.jpg" class="iconLV" />
                                        <%/if%>
                                        <span class="clo9 ml20 font12">等级 <%arr.memberType%><%=toFloat(arr.gradeValue/100, 0)%></span>
                                    </a>
                                    <% if data.userId!=arr.memberId %>
                                    <button class="btnStyleS ml20 <%if arr.followIs&&arr.followIs!=undefined%> hide <%/if%>" data-memberid="<%arr.memberId%>"
                                            onclick="BASE.COMMON.noticeToMember(this)"> + 关注 <%arr.followIs%>  </button>
                                    <button class="btnStyleC ml20 <%if !arr.followIs||arr.followIs==undefined%> hide <%/if%>" data-memberid="<%arr.memberId%>"
                                            onclick="BASE.COMMON.cancelNotice(this)">已关注<%arr.followIs%></button>
                                    <%/if%>
                                </h5>
                                <div class="clo9 font12"><%=dateFormat(arr.createDateTime, 'yyyy-MM-dd')%></div>
                                <p class="mt20 clo3"> <% arr.content %></p>
                            </div>
                            <span class="font24 orange middle-right"><%=toFloat(arr.score, 1)%></span>
                        </li>
                    <%/each%>
                </ul>
            </div>
            <!--用户栏目---别人的评价end-->
        </script>
        <!--用户栏目---别人的评价end-->
    </div>
</div>
{% endblock %}

{% block script %}
    {{ super() }}
<!-- build:js -->
    <script src="../../../public/js/page/plugin/nativepage.js"></script>
    <script src="../../../public/js/page/user/user_userInfo.js"></script>
<!-- endbuild -->
{% endblock %}